package com.zelix;

import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Hashtable;

class zt extends pt implements sm {

    zs o;

    zt(kt kt1, int i, String s, jb jb, qy qy1)
            throws IOException, dc {
        super(kt1, i, s, jb, qy1);
        int j = jb.readUnsignedShort();
        is is1 = a(j);
        a(is1);
        qy1.b(o, this);
    }

    public void a(zs zs1, zs zs2) {
        if (o == zs1) {
            o = zs2;
        } else {
            super.a(zs1, zs2);
        }
    }

    public void a(Hashtable hashtable) {
        super.a(hashtable);
        hashtable.put(o, this);
    }

    void a(is is1)
            throws dc {
        o = (zs) is1;
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
            throws IOException, tb {
        super.a(dataoutputstream, hashtable, nh);
        zs zs1 = (zs) hashtable.get(o);
        if (zs1 != null) {
            dataoutputstream.writeShort(zs1.j());
        } else {
            dataoutputstream.writeShort(o.j());
        }
    }
}
